package com.admin.vo.system;

import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("AddMenuVO(系统菜单)")
public class AddMenuVO {

    @ApiModelProperty(value = "父id", required = true)
    private Long parentId;

    @ApiModelProperty(value = "父菜单名称", required = true)
    private String parentName;

    @ApiModelProperty(value = "菜单名称", required = true)
    private String name;

    @ApiModelProperty(value = "权限标识", required = true)
    private String perms;

    @ApiModelProperty(value = "菜单类型", required = true)
    private List<MenuTypeSelectedVO> menuTypeVOs;

    /**
     * 省
     */
    private Integer province;

    /**
     * 市
     */
    private Integer city;

    /**
     * 区县
     */
    private Integer area;

    /**
     * 获取父菜单ID，一级菜单为0
     * 
     * @return parent_id 父菜单ID，一级菜单为0
     */
    public Long getParentId() {
        return parentId;
    }

    /**
     * 设置父菜单ID，一级菜单为0
     * 
     * @param parentId 父菜单ID，一级菜单为0
     */
    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    /**
     * 获取菜单名称
     * 
     * @return name 菜单名称
     */
    public String getName() {
        return name;
    }

    /**
     * 设置菜单名称
     * 
     * @param name 菜单名称
     */
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    /**
     * 获取授权(多个用逗号分隔，如：user:list,user:create)
     * 
     * @return perms 授权(多个用逗号分隔，如：user:list,user:create)
     */
    public String getPerms() {
        return perms;
    }

    /**
     * 设置授权(多个用逗号分隔，如：user:list,user:create)
     * 
     * @param perms 授权(多个用逗号分隔，如：user:list,user:create)
     */
    public void setPerms(String perms) {
        this.perms = perms == null ? null : perms.trim();
    }

    public List<MenuTypeSelectedVO> getMenuTypeVOs() {
        return menuTypeVOs;
    }

    public void setMenuTypeVOs(List<MenuTypeSelectedVO> menuTypeVOs) {
        this.menuTypeVOs = menuTypeVOs;
    }
}